package com.itHaipeng.mapper;

import com.itHaipeng.pojo.Brand;
import com.itHaipeng.util.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    //查询所有
    List<Brand> selectAll();
    void insert(Brand brand);
    void deleteById(@Param("ids") int[] ids);
    //分页查询
    List<Brand> selectByPage(@Param("begin") int begin,@Param("size") int size);
    //总条数:
    int selectTotalCount();
        //条件分页查询
        List<Brand> selectByPageCondition(@Param("begin") int begin,@Param("size") int size,@Param("brand") Brand brand);
    int selectTotalCountCondition(Brand brand);
}
